<template>
  <div class="serchheader">
    <van-search 
      v-model="serchvalue" 
      shape="round" 
      @input="searchHandle"
      placeholder="请输入搜索关键词" />
  </div>
</template>

<script>

  export default {
    data() {
      return {
        serchvalue: '',
      }
    },
    methods: {
      searchHandle(){
        this.$emit('search', {serchvalue:this.serchvalue,isSearch:true})
      }
    }
  }
</script>

<style scoped>
  .serchheader {
    width: 100%;
    height: 50px;
  }
</style>